const { src, series } = require('gulp');
const ghPages = require('gulp-gh-pages');
const build = require('./build');

function gh() {
    return src('./dist/**/*')
    .pipe(ghPages({
        remoteUrl: 'git@github.com:xinli4/xinli4.github.io.git'
    }));
}

module.exports.deploy = series(
    build,
    gh
)